package com.mes_for_xxxxxx.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工序表
 * </p>
 *
 * @author 179005
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("process")
@ApiModel(value="Process对象", description="工序表")
public class Process implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "工艺的外键")
    private String routeId;

    @ApiModelProperty(value = "工序序号，与生产环节或工序唯一对应")
    private Integer produceId;

    @ApiModelProperty(value = "工序编码，如PS001")
    private String produceNumber;

    @ApiModelProperty(value = "工序名称，如清砂")
    private String produceName;

    @ApiModelProperty(value = "下一道工序对应的id，可多条")
    private Integer nextProduceId;

    @ApiModelProperty(value = "下一道工序名称，如热处理，可多条")
    private String nextProduce;

    @ApiModelProperty(value = "与下一道工序的关系，如直接后续")
    private String relationNext;

    @ApiModelProperty(value = "是否为关键工序，true为是，false为否")
    private Boolean isKeyPro;

    @ApiModelProperty(value = "是否需要质检确认，true为是，false为否")
    private Boolean needComfirm;

    @ApiModelProperty(value = "准备最久时间，如2小时")
    private Double needMaxTime;

    @ApiModelProperty(value = "记录创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "记录更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "成品率")
    private Double yield;

}
